<?php
/*
 * @Author Guilherme A. David D. Ferreira (guilherme.david.desenvolvimento@gmail.com)
 * @Date 14/11/2010
 * @Desc A SOA Server based initially on REST methodology.
 *
 */

//Define some Constants for the Application
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

//Include the library in the includepath
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'libs');

//Autoload for lib
function __autoload($class) { require_once($class . '.php'); }


//Options
$options = array
(
	'service'    => '',
	'returnType' => 'JSON',
	'action'     => '',
	'return'     => true,
	'token'      => ''
);


array_merge($options, $_GET);

ServiceRegistry::LoadService('Database', new Service('GoorilaDatabase'));

?>
